<?php /* Smarty version Smarty-3.1.14, created on 2017-08-18 17:37:55
         compiled from "E:\phpStudy\WWW\zyshop\admin\templates\rank_list.html" */ ?>
<?php /*%%SmartyHeaderCode:293945994fe6798cff3-11814385%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '19504b9650c842c61111e367a79e468fd83c825d' => 
    array (
      0 => 'E:\\phpStudy\\WWW\\zyshop\\admin\\templates\\rank_list.html',
      1 => 1503047031,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '293945994fe6798cff3-11814385',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.14',
  'unifunc' => 'content_5994fe679cafe8_77482603',
  'variables' => 
  array (
    'user' => 0,
    'list' => 0,
    'page' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5994fe679cafe8_77482603')) {function content_5994fe679cafe8_77482603($_smarty_tpl) {?><?php echo $_smarty_tpl->getSubTemplate ("header.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

<style>
table{text-align: center;}
th{text-align:center; font-weight: bolder;}
th a{ color:#000000;}
.firtd {	width: 100px;	padding-right: 10px;	text-align: right;}
input {	width: 350px;}
textarea {	width: 350px;	height: 100px;}
</style>
<body>
<div class="fixed-bar">
<div class="item-title">
    <h3>会员等级列表</h3>
   <form>
    <div style="background:rgba(251,112,45,1);width:125px;height:40px;float:right;text-align:center;border-radius:5px;">
      <a href="user_rank.php?act=edit">
        <h5 style="padding:10px;color:#fff;">添加会员等级</h5>
      </a>
    </div>
    </form>
  </div>
</div>
<div class="fixed_bottom">
  <form method="post" action="" id="aspnetForm" name="form1">
    <table align="center;" class="table tb-type2">
      <thead>
        <tr>
          <th><a>会员等级名称</a></th>
          <th><a>积分下限</a></th>
          <th><a>积分上限</a></th>
          <th><a>初始折扣率(%)</a></th>
          <th><a>会员等级</a></th>
          <th><a>显示价格</a></th>
          <th><a>特殊会员组</a></th>
          <th><a>操作</a></th>
        </tr>
      </thead>
      <tbody id="sortable">
        <?php  $_smarty_tpl->tpl_vars['list'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['list']->_loop = false;
 $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['user']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['list']->key => $_smarty_tpl->tpl_vars['list']->value){
$_smarty_tpl->tpl_vars['list']->_loop = true;
 $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['list']->key;
?>
            <tr id="<?php echo $_smarty_tpl->tpl_vars['list']->value['rank_id'];?>
">
              <td><?php echo $_smarty_tpl->tpl_vars['list']->value['rank_name'];?>
</td>
              <td><?php echo $_smarty_tpl->tpl_vars['list']->value['min_points'];?>
</td>
              <td><?php echo $_smarty_tpl->tpl_vars['list']->value['max_points'];?>
</td>
              <td><?php echo $_smarty_tpl->tpl_vars['list']->value['discount'];?>
</td>
              <td><?php echo $_smarty_tpl->tpl_vars['list']->value['rank_num'];?>
</td>
              <td><i style="cursor:pointer;" onclick="get_show_price(this,<?php echo $_smarty_tpl->tpl_vars['list']->value['rank_id'];?>
,<?php echo $_smarty_tpl->tpl_vars['list']->value['show_price'];?>
)" class="fa <?php if ($_smarty_tpl->tpl_vars['list']->value['show_price']==1){?>fa-check<?php }else{ ?>fa-close<?php }?>"></i></td>
              <td><i style="cursor:pointer;" onclick="get_special_rank(this,<?php echo $_smarty_tpl->tpl_vars['list']->value['rank_id'];?>
,<?php echo $_smarty_tpl->tpl_vars['list']->value['special_rank'];?>
)" class="fa <?php if ($_smarty_tpl->tpl_vars['list']->value['special_rank']==1){?>fa-check<?php }else{ ?>fa-close<?php }?>"></i></td>
              <td>
                <a href="user_rank.php?act=edit&rank_id=<?php echo $_smarty_tpl->tpl_vars['list']->value['rank_id'];?>
">编辑</a>
                <a href="javascript:;" onclick="get_rank(this,<?php echo $_smarty_tpl->tpl_vars['list']->value['rank_id'];?>
)">删除</a>
    
              </td>
            </tr>
        <?php } ?>
      </tbody>
    </table>
   <div class="page"><?php echo $_smarty_tpl->tpl_vars['page']->value;?>
</div>
  </form>
</div>
</body>
<script>
	function get_rank(obj,id){
        $.post("user_rank.php",{act:'del',rank_id:id},function(data){
            if(data==0){
                layer.alert("该等级下有会员，不可删除！");
                return false;
            }else if(data==1){
                layer.msg("操作成功! ");
                $('#'+id).remove();
            }else if(data==2){
                layer.msg("操作失败！");
            }
        }) 
    }
</script>
</html><?php }} ?>